<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript">
//加载附件
function showFujian(){
	var queryCreditApplyId = $('#queryCreditApplyId').val(); 
	if(queryCreditApplyId && queryCreditApplyId != '') {
		showAttentment(queryCreditApplyId,null,null,null,function(){
			showFujians();
		});
	}
	showAttentment($.getUrlData('id'),null,null,null,function(){
		showFujians();
	});
}
//展示附件
function showFujians(){
	var peiou = $('#PEI_OU_SHEN_FEN_ZHENG_MING').find('li');
	if(peiou && peiou.length > 0) {
		showFujianView('peiou');
	}
	
	var danbaoren1 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1').find('li');
	if(danbaoren1 && danbaoren1.length > 0) {
		showFujianView('danbaoren1');
	}
	
	var danbaoren2 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2').find('li');
	if(danbaoren2 && danbaoren2.length > 0) {
		showFujianView('danbaoren2');
	}
	
	var danbaoren3 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3').find('li');
	if(danbaoren3 && danbaoren3.length > 0) {
		showFujianView('danbaoren3');
	}
	
	var danbaoren4 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4').find('li');
	if(danbaoren4 && danbaoren4.length > 0) {
		showFujianView('danbaoren4');
	}
}

function showFujianView(target){
	$('.' + target + '_attachment').show();
}
</script>